<?php
/*
+---------------------------------------------------------------+
|        e107 website system
|        Easy Admin Page by Cameron. (www.e107coders.org)
|        a part of Your_plugin v3.1  multilanguage by Juan  Reseau.li
|        Released under the terms and conditions of the
|        GNU General Public License (http://gnu.org).
|		 Suitable only for e107 v0.7
+---------------------------------------------------------------+
*/

require_once("../../class2.php");
if(!getperms("P")){ header("location:".e_BASE."index.php"); exit; }
require_once(e_ADMIN."auth.php");


      $text = "<center>Here are the avaliable CMSfiles, to create a new integration, click on the CMS name.</center><br/>";
  $text .="<table class='fborder' style='width: 95%;'>";
  $text .="<tr><td class='fcaption'>Name</td><td class='fcaption'>File Name</td><td class='fcaption'>Size</td></tr>";

$gamehandle=opendir(e_PLUGIN."e107cip/cmsfiles");
    while ($gamefile = readdir($gamehandle)){
        if($gamefile != "." && $gamefile != ".." && ereg(".php",$gamefile)){
        $size = floor(@filesize(e_PLUGIN."e107cip/cmsfiles/".$gamefile)/1024)." Kb" ;
        $gamelist = eregi_replace(".php", "", $gamefile);
        $name = ucwords(ereg_replace("_", " ",$gamelist));

        $text .="<tr><td class='forumheader3' style='width:40%'><a href='admin_new2.php?cmsfile=$gamefile'>$name</a></td><td class='forumheader3' style='width:40%'>$gamefile</td><td class='forumheader3' >&nbsp;&nbsp;".$size."&nbsp;</td></tr>";
        }
    }
    closedir($gamehandle);

  $text .="</table>";
$text .="<br/>If you want to integrate a cms but it isn't here, you should go to DIPOrg.com and download one there.<br/> Upload the cmsfile to e107_plugins/e107cip/cmsfiles";
$ns -> tablerender("e107Cip - Admin", $text);

require_once(e_ADMIN."footer.php");

?>
